class Solution(object):
    def shuffle(self, nums, n):
        out = [0] * 2 * n
        for i in range(n):
            out[2 * i] = nums[i]
            out[2 * i + 1] = nums[i + n]
        return out